package com.ztgf.sys.models.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * author: chenyu.wang
 * date: 2020-07-10 15:52
 * Description: 后台管理系统邮件管理列表VO
 */
@Data
public class SysEmailManageVO implements Serializable {
    @ApiModelProperty(value = "主键id")
    private Long id;
    @ApiModelProperty(value = "选择发送对象;0全部用户，1全部店铺，2全部旗舰店，3全部专卖店，4全部专营店，5全部买家，6筛选")
    private Integer selectSendObject;
    @ApiModelProperty(value = "筛选发送对象")
    private String filterSendObject;
    @ApiModelProperty(value = "编号")
    private String number;
    @ApiModelProperty(value = "邮件标题")
    private String mailTitle;
    @ApiModelProperty(value = "邮件内容")
    private String mailContent;
    @ApiModelProperty(value = "发布人员")
    private String publisherName;
    @ApiModelProperty(value = "接收对象")
    private String recipientName;
    @ApiModelProperty(value = "发布时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date pushTime;
    @ApiModelProperty(value = "接收人：公司名/店铺名，以逗号间隔")
    private String name;
    @ApiModelProperty(value = "接收人邮箱号：以逗号间隔")
    private String email;
    @ApiModelProperty(value = "状态 0发送成功，1发送失败")
    private Integer status;
}
